window.WeaHrm4Formal = false;
window.HrmGroupCol = 2; //人力布局(1、一行2列，2、一行4列)
window.HrmLabelCol = 6;
window.HrmWrapperCol = 15;
// window.e9showObserverWarn = true
window.inputType = {
  inputType: 'MULTILANG',
  isBase64: true
} //, isBase64: true}; //'MULTILANG'; //'NORMAL';
import {
  WeaLocaleProvider
} from 'ecCom';
import Route from 'react-router/lib/Route';
import IndexRedirect from "react-router/lib/IndexRedirect"
import Home from './components/Home';
import Checking from './components/Checking'; // 考勤
import BirthdayInfo from './components/BirthdayInfo';
import Group from './components/Group';
import Shift from './components/Shift'; // 排班
import Outside from './components/Outside'; // 外勤
import Total from './components/Total'; //工作历程
import Online from './components/Online'; // 在线人员
import Underling from './components/Underling'; //我的下属
import TrainRecord from './components/TrainRecord'; //培训记录
import RewardsRecord from './components/RewardsRecord'; //奖惩考核
import Finance from './components/Finance'; //我的工资
import RoelSet from './components/card/RoleSet'; //角色设置
import SystemInfo from './components/card/SystemInfo'; //系统信息
import SystemInfo4Formal from './components/card/SystemInfo4Formal'; //系统信息
import Password from './components/Password'; //密码修改、设置
import AddressBook from './components/AddressBook'; //通讯录
import AddressBookForOrgChart from './components/AddressBookForOrgChart'; //通讯录FOR ORG CHART
import Add from './components/add/index'; // 新建人员
import NewOutSide from './components/newOutside/NewOutSide'
// 卡片
import Card from './components/card/index'; // 卡片
import CardInfo from './components/card/Info'; // 基本信息
import CardInfo4Formal from './components/card/Info4Formal_new'; // 基本信息
import CardPersonal from './components/card/Personal'; // 个人信息
import CardWork from './components/card/Work'; // 工作信息
import CardSystemInfo from './components/card/SystemInfo'; //系统信息
import CardSystemInfo4Formal from './components/card/SystemInfo4Formal'; //系统信息
import CardFinance from './components/Finance'; //我的工资
import CardCheckingOld from './components/Checking'; // 旧考勤
import CardCheckingNew from './components/CheckingNew';//'../hrmAttendance/components/Checking'; // 新考勤
import CardTrainrecord from './components/TrainRecord'; //培训记录
import CardRewardsRecord from './components/RewardsRecord'; //奖惩考核
import CardRoelSet from './components/card/RoleSet'; //角色设置
import CardTotal from './components/Total'; //工作历程
import SystemCard from './components/card/SystemCard'; //系统管理员卡片
import AddGroup from './components/card/Group'; //常用组
//报表
import BasicConditionAnalysis from './components/report/BasicConditionAnalysis'; //基本状况分析
import ChangeRelatedReport from './components/report/ChangeRelatedReport'; //人员变动情况
import ConstRpSubSearch from './components/report/ConstRpSubSearch'; //统计子表
import RpSubSearch from './components/report/RpSubSearch'; //统计子表--自定义
import ScheduleDiffReport from './components/report/ScheduleDiffReport'; //考勤报表
import ScheduleDiffReport4Formal from './components/report/ScheduleDiffReport4Formal'; //正式系统考勤报表
import ScheduleDiffMonthAttDetail from './components/report/ScheduleDiffMonthAttDetail'; //考勤月报表
import OrgChart from './components/orgChart/index'; //组织图表
import BindTokenKey from './components/BindTokenKey'; //
import ForgetPassword from './components/forgetPassword/index'; //忘记密码
import Applicant from './components/applicant/index'; //应聘人员
import Usedemand from './components/useDemand/index'; //用工需求
import TimeWageSummary from './components/timeWageSummary/index'; //时间工资汇总
import StaffPayrollSummary from './components/staffPayrollSummary/index'; //人员工资汇总
import spaGroup from './components/group/index'; //新建、编辑常用组单页
import GroupAdvice from './components/groupAdvice/index'; //常用组建议
import PayrollDetail from './components/payrollDetailEntry.js';//工资明细
import ReplaceSearchPinyin from './components/ReplaceSearchPinyin.js';
import SecondaryVerifyCom from './components/secondaryVerifyCom/index';
import Colset from './components/addressBookPlus/Colset.js';
import WeakPassConfirm from './components/WeakPassConfirm.js';
import SuggestDetail from './components/suggestDetail/index';
import Query from './components/query/index.js';
import SendBless from './components/sendBless/index.js';
import BlessCard from './components/blessCard/index';
import HappyBirthday from './components/happyBirthday/index';


import './style/index';
import './util/index';
import stores from './stores/index';
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'hrm');

const HrmRoute = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@6ntob7`} name="hrm" breadcrumbName="人事" path="hrm" onEnter={getLocaleLabel} component={Home}>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@mb5ed9`} name="addressBook" breadcrumbName="通讯录" path="addressBook" component={AddressBook}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@iz874w`} name="orgStaff" breadcrumbName="通讯录FOR ORG CHART" path="orgStaff" component={AddressBookForOrgChart}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@tutqv3`} name="add" breadcrumbName="新建人员" path="add" component={Add}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@x7mru7`} name="card" path="card" component={ Card }>
      <IndexRedirect ecId={`${this && this.props && this.props.ecId || ''}_IndexRedirect@ay0ifm`} to="cardInfo"/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@b063a1`} name='cardInfo' path='cardInfo' component={window.WeaHrm4Formal?CardInfo4Formal:CardInfo}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@lh51ub`} name='cardInfoId' path='cardInfo/:hrmId' component={window.WeaHrm4Formal?CardInfo4Formal:CardInfo}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ko0w0j`} name='cardPersonal' path='cardPersonal' component={CardPersonal}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@szj1wr`} name='cardPersonalId' path='cardPersonal/:hrmId' component={CardPersonal}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@nujxka`} name='cardWork' path='cardWork' component={CardWork}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@2ka0z7`} name='cardWorkId' path='cardWork/:hrmId' component={CardWork}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@27bh2z`} name="cardSystemInfo" path='cardSystemInfo' component={window.WeaHrm4Formal?CardSystemInfo4Formal:CardSystemInfo}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@hbotqt`} name="cardSystemInfoId" path='cardSystemInfo/:hrmId' component={window.WeaHrm4Formal?CardSystemInfo4Formal:CardSystemInfo}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@nzou1x`} name="cardFinance" path='cardFinance' component={Finance}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@pjur1z`} name="cardFinanceId" path='cardFinance/:hrmId' component={Finance}/>

      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@rwt3q5`} name="cardChecking" path='cardChecking' component={CardCheckingOld}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@02682e`} name="cardCheckingId" path='cardChecking/:hrmId' component={CardCheckingOld}/>
      
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@o0tzfo`} name="cardCheckingN" path='cardCheckingN' component={CardCheckingNew}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@zhnig6`} name="cardCheckingNId" path='cardCheckingN/:hrmId' component={CardCheckingNew}/>
      
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@jy7jsr`} name="cardTrainRecord" path='cardTrainRecord' component={CardTrainrecord}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@hyqq68`} name="cardTrainRecordId" path='cardTrainRecord/:hrmId' component={CardTrainrecord}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@vcxtmz`} name="cardRewardsRecord" path='cardRewardsRecord' component={CardRewardsRecord}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@mtr8l4`} name="cardRewardsRecordId" path='cardRewardsRecord/:hrmId' component={CardRewardsRecord}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ksaysy`} name="cardRoleSet" path='cardRoleSet' component={CardRoelSet}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@jbck5l`} name="cardRoleSetId" path='cardRoleSet/:hrmId' component={CardRoelSet}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@gi4q59`} name="cardTotal" path='cardTotal' component={CardTotal}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@fzk7mi`} name="cardTotalId" path='cardTotal/:hrmId' component={CardTotal}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ckk6zs`} name="systemCard" path="systemCard" component={SystemCard}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@evluk9`} name="systemCardId" path="systemCard/:hrmId" component={SystemCard}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@l1v0be`} name="addGroup" path="addGroup" component={AddGroup}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@5aro0s`} name="addGroupId" path="addGroup/:hrmId" component={AddGroup}/>
    </Route>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@lstnfk`} name="report" path="report">
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@clx4ad`} name="basicConditionAnalysis" path="basicConditionAnalysis" component={BasicConditionAnalysis}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@31wgm4`} name="departmentStatistics" path="departmentStatistics" component={BasicConditionAnalysis}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@yo2shv`} name="postStatistics" path="postStatistics" component={BasicConditionAnalysis}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@xwf5jd`} name="jobStatusStatistics" path="jobStatusStatistics" component={BasicConditionAnalysis}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@h6o484`} name="add" path="add" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@kw4v8p`} name="confirmation" path="confirmation" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@q2wvi6`} name="transfer" path="transfer" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@h1d0u1`} name="renew" path="renew" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@fi1j1j`} name="rehire" path="rehire" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ltsabb`} name="loss" path="loss" component={ChangeRelatedReport}/>
      <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@lr83y7`} name="contract" path="contract" component={ChangeRelatedReport}/>
    </Route>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@yekuuw`} name="checking" breadcrumbName="我的考勤" path="checking" component={Checking}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@as6vgg`} name="birthdayinfo" breadcrumbName="人员生日" path="birthdayinfo" component={BirthdayInfo}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@rkpyzh`} name="group" breadcrumbName="人力资源" path="group" component={Group}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@qzw13v`} name="shift" breadcrumbName="我的排班" path="shift" component={Shift}/>
    {/* <Route name="outside" breadcrumbName="外勤签到" path="outside" component={Outside}/> */}
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@fyyace`} name="total" breadcrumbName="工作历程" path="total" component={Total}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@82ohvz`} name="online" breadcrumbName="在线人员" path="online" component={Online}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@9kqoj0`} name="password" breadcrumbName="密码修改和设置" path="password" component={Password}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@og74ru`} name="underling" breadcrumbName="我的下属" path="underling" component={Underling}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@0ln0ez`} name="underlingId" breadcrumbName="我的下属" path="underling/:hrmId" component={Underling}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@yqavod`} name="trainrecord" breadcrumbName="培训记录" path="trainrecord" component={TrainRecord}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@tnri07`} name="rewardsrecord" breadcrumbName="奖惩考核" path="rewardsrecord" component={RewardsRecord}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@9wc456`} name="rewardsrecordId" breadcrumbName="奖惩考核" path="rewardsrecord/:hrmId" component={RewardsRecord}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@yewy8d`} name="finance" breadcrumbName="我的工资" path="finance" component={Finance}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@19llsv`} name="roleset" breadcrumbName="角色设置" path="roleset" component={RoelSet}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@3mwjbo`} name="systeminfo" breadcrumbName="系统信息" path="systeminfo" component={window.WeaHrm4Formal?SystemInfo4Formal:SystemInfo}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@r5qsyl`} name="systeminfoId" breadcrumbName="系统信息" path="systeminfo/:hrmId" component={window.WeaHrm4Formal?SystemInfo4Formal:SystemInfo}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@1sk8c5`} name="constrpsubsearch" breadcrumbName="统计子表" path="constrpsubsearch/:scopeId" component={ConstRpSubSearch}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@sqcu5e`} name="rpsubsearch" breadcrumbName="统计子表--自定义" path="rpsubsearch" component={RpSubSearch}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@f4d7g7`} name="schedulediffreport" breadcrumbName="考勤报表" path="schedulediffreport" component={window.WeaHrm4Formal?ScheduleDiffReport4Formal:ScheduleDiffReport}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ji9w65`} name="schedulediffmonthattdetail" breadcrumbName="考勤报表" path="schedulediffmonthattdetail" component={ScheduleDiffMonthAttDetail}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@71ie4n`} name="orgChart" breadcrumbName="组织图表" path="orgChart" component={OrgChart}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@k956n4`} name="BindTokenKey" breadcrumbName="令牌绑定" path="BindTokenKey" component={BindTokenKey}/>
    {/* <Route name="forgetPassword" breadcrumbName="忘记密码" path="forgetPassword" component={ForgetPassword}/> */}
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@krmiv4`} name="applicant" breadcrumbName="应聘人员" path="applicant" component={Applicant}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@y2x0lw`} name="usedemand" breadcrumbName="用工需求" path="usedemand" component={Usedemand}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ix74b1`} name="timeWageSummary" breadcrumbName="时间工资汇总" path="timeWageSummary" component={TimeWageSummary}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@3ftcgv`} name="staffPayrollSummary" breadcrumbName="人员工资汇总" path="staffPayrollSummary" component={StaffPayrollSummary}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@30z9en`} name="operateGroup" breadcrumbName="新建、编辑常用组单页" path="operateGroup" component={spaGroup}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@r04qr4`} name="groupAdvice" breadcrumbName="常用组建议" path="groupAdvice" component={GroupAdvice}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@7x0o07`} name="newOutside" breadcrumbName="新外勤签到" path="outside" component={NewOutSide}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@q8tl4i`} name="payrollDetail" breadcrumbName="工资明细" path="payrollDetail" component={PayrollDetail}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@dyhj9x`} name="payrollDetail" breadcrumbName="工资明细" path="payrollDetail/:id" component={PayrollDetail}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@65utok`} name="replaceSearchPinyin" breadcrumbName="格式化全拼搜索" path="replaceSearchPinyin" component={ReplaceSearchPinyin}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@xoo5bq`} name="colset" breadcrumbName="显示列定制" path="colset" component={Colset}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@voe8dk`} name="weakPassConfirm" breadcrumbName="弱密码提示" path="weakPassConfirm" component={WeakPassConfirm}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@pqil26`} name="suggestDetail" breadcrumbName="常用组调整建议单" path="suggestDetail" component={SuggestDetail}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@kjqznz`} name="query" breadcrumbName="查询人员" path="query" component={Query}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ywq7yx`} name="sendBless" breadcrumbName="送祝福" path="sendBless" component={SendBless}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@8ehetf`} name="blessCard" breadcrumbName="祝福贺卡" path="blessing/:id" component={BlessCard}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@x2vj9m`} name="happyBirthday" breadcrumbName="生日提醒" path="birthdayRemind/:id" component={HappyBirthday}/>
  </Route>
)

const HrmRoute1 = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@1swwx3`} name="hrm" breadcrumbName="人事" path="hrmSingle" component={Home}>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@jxpnpr`} name="forgetPassword" breadcrumbName="忘记密码" path="forgetPassword" component={ForgetPassword}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@mr0de9`} name="secondaryVerify" breadcrumbName="二次密码验证" path="secondaryVerify/:authType" component={SecondaryVerifyCom}/>
  </Route>
)
module.exports = {
  Route: [HrmRoute, HrmRoute1],
  store: stores
}